<template>
  <router-view v-slot="{ Component }">
    <keep-alive :include="keepAliveNames">
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>
<script setup name="keep-alive-route-view">
import { routes } from "@/router/index";
import { getKeepAliveInclude } from "@/utils/utils";
const keepAliveNames = getKeepAliveInclude(routes);
</script>
